const userCount: number = 100;
const MAX_USER_COUNT: number = 200;
const MIN_USER_COUNT: number = 50;

const doSomething = () => {
  console.log(1);
};

// 错误示例
if (userCount > MAX_USER_COUNT || userCount > 100 || userCount < 200 || userCount === 1 || userCount === 2
    || userCount < MIN_USER_COUNT
) {
    doSomething();
}

const str:string = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
  + 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb';

const flag: boolean = userCount === 1 || userCount === 2 || userCount ===3 || userCount === 4 || userCount === 5
  && (userCount < MAX_USER_COUNT && userCount > MIN_USER_COUNT);
  
// 正确示例
if (userCount > MAX_USER_COUNT || userCount > 100 || userCount < 200 || userCount === 1 || userCount === 2 || 
  userCount < MIN_USER_COUNT
) {
    doSomething();
}

const str2:string = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' + 
  'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb';

const flag2: boolean = userCount === 1 || userCount === 2 || userCount ===3 || userCount === 4 || userCount === 5 &&
  (userCount < MAX_USER_COUNT && userCount > MIN_USER_COUNT);
